#include <iostream>

extern "C" {
#include "rcim_client.h"
}

//typedef void (*EngineStringLsr)(const void *context, const char *value);
//
//typedef void (*EngineIntLsr)(const void *context, long value);

void string_listener_wrapper(const void *context, const char *value) {
    printf("string_listener_wrapper %s", value);
}

void int_string_wrapper(const void *context, long value) {
    printf("int_string_wrapper %ld", value);
}

int main() {
    std::cout << "Hello, World!" << std::endl;
    Engine *engine;
    engine_build(&engine);

    engine_set_string_listener(engine, nullptr, string_listener_wrapper);
    engine_set_int_listener(engine, nullptr, int_string_wrapper);

    engine_call_listeners(engine, 100);

    return 0;
}
